package com.icss.flow.service.impl;

import cn.hutool.core.bean.BeanUtil;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.icss.flow.pojo.entity.TFormLayout;
import com.icss.flow.pojo.vo.TFormLayoutVO;
import com.icss.flow.service.TFormLayoutService;
import com.icss.flow.mapper.TFormLayoutMapper;
import org.springframework.stereotype.Service;

/**
* @author Administrator
* @description 针对表【t_form_layout】的数据库操作Service实现
* @createDate 2024-04-11 09:53:31
*/
@Service
public class TFormLayoutServiceImpl extends ServiceImpl<TFormLayoutMapper, TFormLayout>
    implements TFormLayoutService{

    @Override
    public TFormLayoutVO getFormLayout(Integer entityCode) {
        LambdaQueryWrapper<TFormLayout> lqw = new LambdaQueryWrapper<>();
        lqw.eq(TFormLayout::getEntityCode, entityCode);
        TFormLayout formLayout = this.getOne(lqw);
        return BeanUtil.copyProperties(formLayout,TFormLayoutVO.class);
    }
}




